<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <head><title></title></head>
    <body>
        <ui:composition>
            <div id="left_bar_top"></div>
            <div id="left_bar_content">
                <ul>
                    <li>
                        <h:link outcome="index" value="#{bundle.Home}"/>
                    </li>
                    <li>
                        <h:link outcome="#{hotelController.prepareList()}" value="#{bundle.HotelsList}"/>
                    </li>
                    <li>
                        <h:link outcome="#{roomController.prepareList()}" value="#{bundle.RoomsList}"/>
                    </li>
                    <h:panelGroup rendered="#{userRights.client}">
                        <li>
                            <h:link outcome="#{reservationController.prepareList()}" value="#{bundle.ReservationsList}" />
                        </li>
                    </h:panelGroup>
                    <h:panelGroup rendered="#{userRights.admin || userRights.moderator}">
                        <li>
                            <h:link outcome="#{userController.prepareList()}" value="#{bundle.usersList}"/>
                        </li>
                    </h:panelGroup>
                    <h:panelGroup rendered="#{userRights.client and !(userRights.admin || userRights.moderator)}">
                        <li>
                            <h:link outcome="#{userController.prepareEdit()}" value="#{bundle.usersList}"/>
                        </li>
                    </h:panelGroup>
                </ul>
            </div>
            <div id="left_bar_bottom"></div>
        </ui:composition>
    </body>
</html>
